package com.yj.spring.charpter04;

import com.yj.spring.charpter03.MyBean1;

public class Main {
    public static void main(String[] args) throws Exception {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");
        context.refresh();
        MyBean1 myBean1 = (MyBean1) context.getBean("myBean1");
        System.out.println(myBean1);
    }
}
